<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录页面原型</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        body {
            display: flex;
            min-height: 100vh;
            background: #f5f5f5;
        }

        .container {
            display: flex;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        .prototype {
            flex: 1;
            max-width: 375px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            padding: 30px;
            margin-right: 40px;
        }

        .design-specs {
            flex: 1;
            padding: 20px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .login-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .login-header h1 {
            font-size: 24px;
            color: #333;
            margin-bottom: 10px;
        }

        .login-header p {
            color: #666;
            font-size: 14px;
        }

        .input-group {
            margin-bottom: 20px;
        }

        .input-group label {
            display: block;
            margin-bottom: 8px;
            color: #333;
            font-size: 14px;
        }

        .input-group input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .input-group input:focus {
            border-color: #4A90E2;
            outline: none;
            box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
        }

        .login-button {
            width: 100%;
            padding: 12px;
            background: #4A90E2;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .login-button:hover {
            background: #357ABD;
        }

        .forgot-password {
            text-align: center;
            margin-top: 15px;
        }

        .forgot-password a {
            color: #4A90E2;
            text-decoration: none;
            font-size: 14px;
        }

        .design-specs h2 {
            color: #333;
            margin-bottom: 20px;
            font-size: 20px;
        }

        .spec-item {
            margin-bottom: 20px;
        }

        .spec-item h3 {
            color: #4A90E2;
            margin-bottom: 10px;
            font-size: 16px;
        }

        .spec-item p {
            color: #666;
            font-size: 14px;
            line-height: 1.6;
        }

        @media (max-width: 768px) {
            .container {
                flex-direction: column;
            }
            .prototype {
                margin-right: 0;
                margin-bottom: 20px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="prototype">
            <div class="login-header">
                <h1>欢迎回来</h1>
                <p>请登录您的账号</p>
            </div>
            <form>
                <div class="input-group">
                    <label for="username">账号</label>
                    <input type="text" id="username" placeholder="请输入账号">
                </div>
                <div class="input-group">
                    <label for="password">密码</label>
                    <input type="password" id="password" placeholder="请输入密码">
                </div>
                <button type="submit" class="login-button">登录</button>
                <div class="forgot-password">
                    <a href="#">忘记密码？</a>
                </div>
            </form>
        </div>

        <div class="design-specs">
            <h2>设计说明</h2>
            
            <div class="spec-item">
                <h3>视觉设计</h3>
                <p>• 采用简洁现代的设计风格，使用柔和的阴影和圆角元素<br>
                • 主色调使用#4A90E2蓝色，给人可靠、专业的感觉<br>
                • 字体采用系统默认字体栈，确保最佳可读性<br>
                • 留白充足，视觉层次分明</p>
            </div>

            <div class="spec-item">
                <h3>交互设计</h3>
                <p>• 输入框获得焦点时有轻微的高亮效果<br>
                • 按钮有hover效果，提供即时反馈<br>
                • 表单验证即时反馈<br>
                • 所有可点击元素都有明确的视觉提示</p>
            </div>

            <div class="spec-item">
                <h3>响应式设计</h3>
                <p>• 适配各种移动设备屏幕尺寸<br>
                • 在桌面端查看时，原型和设计说明并排展示<br>
                • 在移动端查看时，自动调整为上下布局</p>
            </div>

            <div class="spec-item">
                <h3>用户体验</h3>
                <p>• 清晰的视觉层次引导用户完成登录流程<br>
                • 输入框有明确的标签和占位符提示<br>
                • 提供忘记密码选项<br>
                • 登录按钮醒目且易于点击</p>
            </div>
        </div>
    </div>

    <script>
        document.querySelector('form').addEventListener('submit', function(e) {
            e.preventDefault();
            const username = document.getElementById('username').value;
            const password = document.getElementById('password').value;
            
            if (!username || !password) {
                alert('请填写完整的登录信息');
                return;
            }
            
            alert('登录成功！');
        });
    </script>
</body>
</html> 